import { createApp } from 'vue'
import App from './App.vue'

import router,{setupRouter} from "./router"

import  {setupPlugins} from "@/plugins/index"

import "animate.css"
//全局样式
import  "@/style/golbal.scss"
bootstrapApp()


//定制方法
async function bootstrapApp(){
    const app=createApp(App)

//导入插件 tailwindcss axios elementplus pinia ....
setupPlugins(app)
setupRouter(app)
await   router.isReady() //当路由挂载完成，才渲染页面
 app.mount('#app')
}

